<template>
	<view>
		<scroll-view scroll-y class="page">
			<!-- 头部 -->
			<cu-custom bgColor="bg-rgb" :isBack="true">
				<block slot="backText">返回</block>
				<block slot="content">收货详情</block>
				<view slot="right" @tap="rightClick">凭证抬头</view>
			</cu-custom>
			<!-- 查询条件 -->
			<view class="fixed" :style="[{animationDelay: 0.1 + 's'}]">
				<form>
					<view class="cu-form-group last">
						<image class="icon" src="../../static/saomiao.png" mode=""></image>
						<input :focus="focusIndex" placeholder="请扫描二维码" name="input" v-model="codeId" @confirm="query"></input>
					</view>
					<view class="cu-form-group last">
						<image class="icon" src="../../static/saomiao.png" mode=""></image>
						<input placeholder="请输入规格" name="input" v-model="myFormData.materielCode"
							@confirm="inputQuery"></input>
					</view>
				</form>
			</view>
			<!-- 详情 -->
			<view class="list">
				<view class="cu-list menu" v-if="WordListMsg.length > 0">
					<view class="cu-list menu" v-for="(item,index) in WordListMsg" :key="index">
						<view class="cu-item animation-slide-bottom">
							<view class="title">
								<text>采购明细({{index+1}})</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">料号</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.materielCode}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">客户料号</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.clientCode}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">物料</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.materielName}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">封装</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.query5}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">伏数</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.query6}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">误差</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.rowNum}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">规格</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.materielGauge}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">交货日期</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.deliveryDate}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">库存地点</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.storageSite}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">批次</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.batchNum}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">申请者</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.applicant}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">采购数量</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.purchaseNum}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">未收货数量</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.unreceiveNum}}</text>
							</view>
						</view>
						<view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="text-grey">单位</text>
							</view>
							<view class="action">
								<text class="text-grey">{{item.orderUnit}}</text>
							</view>
						</view>
						<!-- <view class="cu-item animation-slide-bottom">
							<view class="content">
								<text class="titles" style="background-color: #99CC00;">收货数量：</text>
							</view>
							<view class="action">
								<input type="text" v-model="preservationList[index].num" placeholder="请输入收货数量" />
							</view>
						</view> -->
						<view class="cu-item animation-slide-bottom btns">
							<!-- <view class=""> -->
							<view class="btn1" @click="prin(item)">打印</view>
							<!-- <view class="btn2" @click="Warehousing(index,item)">收货</view> -->
							<view class="btn3" @click="scanning(index,item)">扫描收货</view>
							<!-- </view> -->
						</view>
						<view class="line">

						</view>
					</view>
				</view>
			</view>
			<!-- 抬头凭证 输入弹窗 -->
			<template v-if="modalName=='Modal'">
				<view class="cu-modal" :class="modalName=='Modal'?'show':''">
					<view class="cu-dialog">
						<view class="cu-bar bg-white justify-end">
							<view class="content">凭证抬头</view>
							<view class="action">
								<text class="cuIcon-close text-red" @click="close"></text>
							</view>
						</view>
						<view class="padding-xl">
							<form>
								<view class="cu-form-group">
									<view class="titles">凭证日期：</view>
									<picker mode="date" :value="myModelData.cerDate" @change="cerDateChange">
										<view class="picker">
											{{myModelData.cerDate}}
										</view>
									</picker>
								</view>
								<view class="cu-form-group">
									<view class="titles">过账日期：</view>
									<picker mode="date" :value="myModelData.accountDate" @change="accountDateChange">
										<view class="picker">
											{{myModelData.accountDate}}
										</view>
									</picker>
								</view>
								<view class="cu-form-group">
									<view class="titles">类型：</view>
									<input placeholder="工号" style="text-align: right;" name="input"
										v-model="myModelData.affairType" disabled></input>
								</view>
								<view class="cu-form-group">
									<view class="titles">描述：</view>
									<textarea value="" placeholder="请输入描述" style="text-align: left;text-indent: 2em;"
										v-model="myModelData.affairContent" />
								</view>
								<view class="padding flex flex-direction">
									<button class="cu-btn lg" @click="onSubmit">确定</button>
								</view>
							</form>
						</view>
					</view>
				</view>
			</template>
			<!-- 打印 输入弹窗 -->
			<view class="cu-modal" v-if="modalName1=='Modal1'" :class="modalName1=='Modal1'?'show':''">
				<view class="cu-dialog">
					<view class="cu-bar bg-white justify-end">
						<view class="content">打印</view>
						<view class="action" @tap="hideModal1">
							<text class="cuIcon-close text-red"></text>
						</view>
					</view>
					<view class="padding-xl">
						<form>
							<view class="cu-form-group">
								<view class="titles">批次：</view>
								<input placeholder="请扫描批次号" style="text-align: right;" :value="myModelData1.batchNum"
									name="input" type="text" @input="onKeyInput($event,1)"></input>
							</view>
							<view class="cu-form-group">
								<view class="titles">客户料号：</view>
								<input placeholder="请扫描客户料号" style="text-align: right;" :value="myModelData1.clientCode"
									name="input" type="text" @input="onKeyInput($event,2)"></input>
							</view>
							<view class="cu-form-group">
								<view class="titles">批次数量：</view>
								<input placeholder="请输入批次数量" style="text-align: right;" :value="myModelData1.batch"
									name="input" type="number" @input="onKeyInput($event,3)"></input>
							</view>
							<view class="cu-form-group">
								<view class="titles">打印张数：</view>
								<input placeholder="请输入打印张数" style="text-align: right" :value="myModelData1.printNum"
									type="number" @input="onKeyInput($event,4)"></input>
							</view>
							<view class="cu-form-group">
								<view class="titles">备注：</view>
								<input placeholder="请输入备注" style="text-align: right" :value="myModelData1.remark"
									name="input" @input="onKeyInput($event,5)"></input>
							</view>
							<view class="padding flex flex-direction">
								<button class="cu-btn bg-blue lg" @click="onSubmitPrin">确定</button>
							</view>
						</form>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	import {
		debounce,
		dateFormat
	} from "@/common/util/tools"
	export default {
		name: 'recriveDetail',
		data() {
			return {
				id: '', // 收货单ID
				myFormData: {
					materielCode: ''
				},
				focusIndex:true,
				codeId: '',
				recriveMsg: {}, // 订单管理—采购订单-通过id查询
				WordListMsg: [], // 订单管理—采购订单子表主表ID查询
				preservationList: [],
				modalName: '',
				modalName1: '',
				myModelData1: {
					batch: '', // 批次数量
					unPrintNum: '', // 未打印数量
					id: '', //id
					printNum: '', // 打印张数
					mobileType: '收货打印',
					batchNum: '', //批次号
					remark: '', //备注
					clientCode: ''
				},
				myModelData: {
					cerDate: '', //凭证日期
					accountDate: '', // 过账日期
					affairType: '',
					affairContent: '',
					purchaseId: '',
					// loifFinish: '未完成',
				},
				pageNo:1,
				pageSize:10,
				total: 0,
			}
		},
		onReachBottom() {
			if(this.WordListMsg.length < this.total){
				this.pageNo++
				this.getWordListDetail()
			}
		},
		onShow() {
			this.pageNo = 1
			this.pageSize = 10
			this.total = 0
			this.WordListMsg = []
			this.codeId = ''
			this.focusIndex = false
			this.$nextTick(function(){
				this.focusIndex = true
			})
			console.log(11111111,this.focusIndex)
			if(uni.getStorageSync('selectPurchaseId')){
				uni.removeStorageSync('selectPurchaseId')
			}
			this.id = uni.getStorageSync('receiveId')
			this.myModelData.purchaseId = uni.getStorageSync('receiveId');
			this.getWordListDetail();
			let date = new Date()
			this.myModelData.cerDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
			this.myModelData.accountDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
			this.myModelData.affairType = uni.getStorageSync('affairType');
		},
		onLoad(e) {

		},
		methods: {
			onKeyInput: debounce(function(event, index) {
				switch (index) {
					case 1:
						this.myModelData1.batchNum = event.target.value
						break
					case 2:
						this.myModelData1.clientCode = event.target.value
						break
					case 3:
						this.myModelData1.batch = event.target.value
						break
					case 4:
						this.myModelData1.printNum = event.target.value
						break
					case 5:
						this.myModelData1.remark = event.target.value
						break
				}
				console.log(event.target.value, '序号：', index)
			}, 1000),
			// 订单管理—采购订单子表主表ID查询
			getWordListDetail() {
				uni.showLoading({
					mask: true,
					title: '加载中.....'
				})
				let data = {
					id: this.id,
					gauge: this.myFormData.materielCode,
					ifFinish: '未完成',
					pageSize:this.pageSize,
					pageNo:this.pageNo
				}
				this.$http.get('order/mesOrderPurchase/queryMesPurchaseItemsByMainId', {
					params: data
				}).then(res => {
					if (res.data.success) {
						this.total = res.data.result.total
						this.myFormData.materielCode = '';
						uni.hideLoading()
						// this.WordListMsg = []
						this.preservationList = []
						if (res.data.result != null) {
							this.WordListMsg = this.WordListMsg.concat(res.data.result.records);
							for (let i = 0; i < this.WordListMsg.length; i++) {
								let data = {
									id: this.WordListMsg[i].id,
									num: ''
								}
								this.preservationList.push(data)
							}
						}
					} else {
						this.myFormData.materielCode = '';
						// this.$tip.error(res.data.message)
						this.modal.show({
							type: 'error',
							content: res.data.message
						})
					}
				})
			},
			// 输入框查询
			inputQuery() {
				this.pageNo = 1
				this.pageSize = 10
				this.total = 0
				this.WordListMsg = []
				this.getWordListDetail();


			},
			query() {
				uni.showLoading({
					mask: true,
					title: '加载中.....'
				})
				let obj = {
					id: this.id,
					ifFinish: '未完成',
					wholeId: this.codeId,
				}
				this.$http.get('order/mesOrderPurchase/queryMesPurchaseItemByMainId2', {
					params: obj
				}).then(res => {
					if (res.data.success) {
						uni.hideLoading()
						this.WordListMsg = []
						this.preservationList = []
						if (res.data.result != null) {
							this.WordListMsg = res.data.result;
							for (let i = 0; i < this.WordListMsg.length; i++) {
								let data = {
									id: this.WordListMsg[i].id,
									num: ''
								}
								this.preservationList.push(data)
							}
						}
					} else {
						uni.hideLoading()
						// this.$tip.error(res.data.message)
						this.modal.show({
							type: 'error',
							content: res.data.message
						})
					}
				})
			},
			// 入库
			// // 凭证抬头 按钮
			rightClick() {
				this.modalName = 'Modal'
			},
			// 关闭弹窗
			close() {
				this.modalName = '';
				this.myModelData.affairContent = '';
			},
			// 凭证日期
			cerDateChange(e) {
				this.myModelData.cerDate = e.detail.value
			},
			accountDateChange(e) {
				this.myModelData.accountDate = e.detail.value
			},
			onSubmit() {
				uni.showLoading({
					mask: true,
					title: '添加凭证抬头中.....'
				})
				if (this.myModelData.affairContent.replace(/\s+/g, "") == '') {
					// this.$tip.error('描述不能为空');
					this.modal.show({
						type: 'error',
						content: '描述不能为空'
					})
					uni.hideLoading()
					return false
				}
				this.$http.post('storage/mesCertificatePerk/add', this.myModelData).then(res => {
					uni.hideLoading()
					if (res.data.success) {
						uni.setStorageSync('selectPurchaseId', res.data.result.id);
						// this.$tip.success(res.data.message)
						this.modal.show({
							type: 'success',
							content: res.data.message
						})
						this.modalName = '';
						this.myModelData.affairContent = '';
					} else {
						// this.$tip.error(res.data.message)
						this.modal.show({
							type: 'error',
							content: res.data.message
						})
					}
				})
			},
			Warehousing(index, item) {
				let num = this.preservationList[index].num;
				if (!(/(^[1-9]\d*$)/.test(num))) {
					// 　　　　　	this.$tip.error('请输入正确的数量')
					this.modal.show({
						type: 'error',
						content: '请输入正确的数量'
					})
					return false;
				}
				if (this.preservationList[index].num == '' || this.preservationList[index].num == 0) {
					// this.$tip.error('入库数不能为空')
					this.modal.show({
						type: 'error',
						content: '入库数不能为空'
					})
					return false
				} else if (!uni.getStorageSync('selectPurchaseId')) {
					this.modalName = 'Modal'
					return false
				}
				uni.showModal({
					title: '收货',
					content: '是否收货？',
					cancelText: '取消',
					confirmText: '收货',
					success: res => {
						if (res.confirm) {
							uni.showLoading({
								mask: true,
								title: '收货中.....'
							})
							let data = {
								mobileCode: 103,
								mobileType: '收货',
								perkId: uni.getStorageSync('selectPurchaseId'),
								reserveCode: this.preservationList[index].id,
								inputNum: this.preservationList[index].num ? this.preservationList[index]
									.num : '0',
								materielCode: item.materielCode
							}
							// this.$http.post('storage/mesCertificatePerk/addMesCertificateItem',data).then( res =>{
							this.$http.post('storage/mesCertificatePerk/addReceiveItem', data).then(res => {
								uni.hideLoading()
								if (res.data.success) {
									// this.$tip.success(res.data.message)
									this.modal.show({
										type: 'success',
										content: res.data.message
									})
									this.pageNo = 1
									this.pageSize = 10
									this.total = 0
									this.WordListMsg = []
									this.getWordListDetail()
								} else {
									// this.$tip.error(res.data.message)
									this.modal.show({
										type: 'error',
										content: res.data.message
									})
								}
							})
						}
					}
				})
			},
			// 扫描入库
			scanning(index, item) {
				if (!uni.getStorageSync('selectPurchaseId')) {
					console.log('扫描入库无selectPurchaseId')
					this.$http.get('/storage/mesCertificatePerk/selectPurchaseId', {
						params: {
							purchaseId: item.purchaseId
						}
					}).then(res => {
						if (res.data.success) {
							if (res.data.result) {
								let selectPurchaseId = res.data.result.id
								uni.setStorageSync('selectPurchaseId', res.data.result.id);
								uni.showModal({
									title: '扫描收货',
									content: '是否扫描收货？',
									cancelText: '取消',
									confirmText: '扫描收货',
									success: res => {
										if (res.confirm) {
											// uni.showLoading({
											// 	mask: true,
											// 	title: '扫描收货中.....'
											// })
											let data = {
												mobileCode: 103,
												mobileType: '扫描收货',
												perkId: uni.getStorageSync('selectPurchaseId'),
												reserveCode: this.preservationList[index].id,
												inputNum: this.preservationList[index].num ? this.preservationList[index].num : '0',
												materielCode: item.materielCode
											}
											this.$Router.push({
												name: 'receiveDetailSaoMiao',
												params:{
													selectPurchaseId:selectPurchaseId,
													purchaseNum:item.purchaseNum
												}
											})
											// this.$http.post('storage/mesCertificatePerk/addMesCertificateItem',data).then( res =>{
											uni.setStorageSync('receiveBaseCode', item.id)
											// this.$http.post(
											// 		'storage/mesCertificatePerk/addReceiveItem', data)
											// 	.then(res => {
											// 		uni.hideLoading()
											// 		if (res.data.success) {
											// 			uni.setStorageSync('receiveDetailId', res.data.result.id)
											// 			uni.setStorageSync('receiveBaseCode', item.id)
											// 			this.$Router.push({
											// 				name: 'receiveDetailSaoMiao'
											// 			})
											// 		} else {
											// 			// this.$tip.error(res.data.message)
											// 			this.modal.show({
											// 				type: 'error',
											// 				content: res.data.message
											// 			})
											// 		}
											// 	})
										} else if (res.cancel) {
											console.log('取消')
											this.modalName = ''
											uni.removeStorageSync('selectPurchaseId')
										}
									},
								})
							} else {
								this.modalName = 'Modal'
								return false
							}
						} else {
							this.modalName = ''
						}
					})
				} else {
					console.log('扫描入库有selectPurchaseId')
					uni.showModal({
						title: '扫描收货',
						content: '是否扫描收货？',
						cancelText: '取消',
						confirmText: '扫描收货',
						success: res => {
							if (res.confirm) {
								// uni.showLoading({
								// 	mask: true,
								// 	title: '扫描收货中.....'
								// })
								let data = {
									mobileCode: 103,
									mobileType: '扫描收货',
									perkId: uni.getStorageSync('selectPurchaseId'),
									reserveCode: this.preservationList[index].id,
									inputNum: this.preservationList[index].num ? this.preservationList[index].num : '0',
									materielCode: item.materielCode
								}
								// this.$http.post('storage/mesCertificatePerk/addMesCertificateItem',data).then( res =>{
									let selectPurchaseId = uni.getStorageSync('selectPurchaseId')
									this.$Router.push({
										name: 'receiveDetailSaoMiao',
										params:{
											selectPurchaseId:selectPurchaseId
										}
									})
									uni.setStorageSync('receiveBaseCode', item.id)
								// this.$http.post(
								// 		'storage/mesCertificatePerk/addReceiveItem', data)
								// 	.then(res => {
								// 		uni.hideLoading()
								// 		if (res.data.success) {
								// 			uni.setStorageSync('receiveDetailId', res.data.result.id)
								// 			uni.setStorageSync('receiveBaseCode', item.id)
								// 			this.$Router.push({
								// 				name: 'receiveDetailSaoMiao'
								// 			})
								// 		} else {
								// 			// this.$tip.error(res.data.message)
								// 			this.modal.show({
								// 				type: 'error',
								// 				content: res.data.message
								// 			})
								// 		}
								// 	})
							} else if (res.cancel) {
								console.log('取消')
								this.modalName = ''
							}
						},
					})
				}

			},
			hideModal() {
				this.modalName = ''
			},
			// 打印
			prin(item) {
				let now = new Date()
				this.myModelData1 = {
					batch: item.query4 ? item.query4 : '1000', // 批次数量
					unPrintNum: item.unreceiveNum, // 未打印数量
					id: item.id, //id
					printNum: '1', // 打印张数
					mobileType: '收货打印',
					batchNum: dateFormat(now, 'YYYYMMDDhhmmss'), //批次号
					remark: '', //备注
					clientCode: item.clientCode
				}
				this.modalName1 = 'Modal1'
			},
			hideModal1() {
				this.modalName1 = ''
			},
			onSubmitPrin() {
				if (this.myModelData1.batch.replace(/\s+/g, "") == '') {
					// this.$tip.error('批次数量不能为空');
					this.modal.show({
						type: 'error',
						content: '批次数量不能为空'
					})
					return false
				} else if (this.myModelData1.printNum.replace(/\s+/g, "") == '') {
					// this.$tip.error('打印张数不能为空');
					this.modal.show({
						type: 'error',
						content: '打印张数不能为空'
					})
					return false
				} else if (Number(this.myModelData1.unPrintNum) < Number(this.myModelData1.batch)) {
					this.modal.show({
						type: 'error',
						content: '当前未打印数量为'+this.myModelData1.unPrintNum+'，请输入正确的批次数量'
					})
					return false
				}
				console.log(111,Number(this.myModelData1.unPrintNum) , Number(this.myModelData1.batch))
				uni.showModal({
					title: '提示',
					content: '是否打印' + this.myModelData1.printNum + '张？',
					cancelText: '取消',
					confirmText: '打印',
					success: res => {
						if (res.confirm) {
							this.$http.get('storage/mesStorageWholesale/printAdd', {
								params: this.myModelData1
							}).then(res => {
								if (res.data.success) {
									// this.$tip.success(res.data.message)
									this.modal.show({
										type: 'success',
										content: res.data.message
									})
									this.myModelData1.unPrintNum = (Number(this.myModelData1.unPrintNum) - Number(this.myModelData1.batch)).toString()
									if (Number(this.myModelData1.unPrintNum) <= 0) {
										this.modalName1 = ''
									} else {
										if (Number(this.myModelData1.unPrintNum) < Number(this.myModelData1.batch)) {
											this.myModelData1.batch = this.myModelData1.unPrintNum
										}
									}
									console.log(2222,this.myModelData1.unPrintNum)
									// this.modalName1 = ''
								} else {
									// this.$tip.error(res.data.message)
									this.modal.show({
										type: 'error',
										content: res.data.message
									})
								}
							})
						}
					}
				})

			}
		},
	}
</script>

<style lang="less">
	page {
		background-color: white;

		.none2 {
			font-size: 30rpx;
			text-align: center;
			margin-top: 50rpx;
			color: #999999;
		}

		.fixed {
			position: fixed;
			z-index: 1;
			width: 100%;
			background-color: white;
			height: 100rpx;
			border-bottom: 1rpx solid #eee;

			.last {
				border-bottom: 1rpx solid #eee;
				position: relative;

				.icon {
					width: 30rpx;
					height: 29rpx;
					position: absolute;
					top: 36rpx;
					left: 60rpx;
				}

				input {
					width: 686rpx;
					height: 68rpx;
					background: #FFFFFF;
					border: 1px solid #D5D8DF;
					border-radius: 34px;
					padding-left: 79rpx;
				}
			}
		}

		.list {
			margin-top: 200rpx;

			.title {
				font-weight: bold;
				padding: 10rpx;
				font-size: 28rpx;
			}

			.titles {
				font-weight: bold;
				padding: 10rpx;
				font-size: 28rpx;
				border-radius: 10rpx;
				color: white;
			}

			.content {
				color: #485A75;
			}

			.action {
				width: 70%;
				word-break: break-all;
				text-align: right;

				.text-grey {
					color: #191919;
					font-weight: bold;
				}

				input {
					width: 300rpx;
					border: 2rpx solid #eee;
					padding: 0 30rpx;
					height: 60rpx;
					border-radius: 10rpx;
				}
			}

			.line {
				width: 750rpx;
				height: 10rpx;
				background: #F3F5F9;
			}

			.btns {
				padding: 0 20rpx;
				font-size: 25rpx;
				padding: 20rpx 30rpx;

				view {
					width: 180rpx;
					height: 64rpx;
					line-height: 50rpx;
					color: white;
					border-radius: 30rpx;
					padding: 10rpx 20rpx;
					text-align: center;
				}

				.btn1 {
					background-image: radial-gradient(circle, #3F55E9, #5F71ED, #7D8CF0);
				}

				.btn2 {
					background-image: radial-gradient(circle, #716BA9, #362D85, #57509A);
				}

				.btn3 {
					background-image: radial-gradient(circle, #354D9E, #354D9E, #697BB7);
				}
			}
		}
	}

	.cu-btn {
		background-image: radial-gradient(circle, #3F55E9, #5F71ED, #7D8CF0);
		color: white;
	}
</style>
